﻿@page
@using Cybertron.Tag
@inject Cybertron.Tag.ICmsTag cms
@{
    int siteid = ViewBag.SiteId;
    var site = cms.site.get(siteid);
    var part_kv = cms.part.get_group_whith_parts(3);
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Pragma" content="no-cache">
    <title>@site.title</title>
    <meta name="keywords" content="@site.keywords" />
    <meta name="description" content="@site.description" />
    <link rel="stylesheet" type="text/css" href="/templates/hongyuan/css/index.min.css" />
</head>
<body>
    <div class="m-head head-other">
        <a href="" class="u-logo"></a>
        <div class="u-menu">
            <span></span>
            <b></b>
        </div>
        <div class="u-language">
            <a href="/">中</a><b>·</b><a href="/en">EN</a>
        </div>
        <a href="/" class="u-link">@site.name</a>
        @Html.Partial("include/search", 0)
    </div>
    <div class="u-search-box">
        @Html.Partial("include/msearch", 0)
    </div>
    @Html.Partial("include/nav", 0)

    @{ 
        if (part_kv.parts.Count > 0)
        {
            <div class="m-index-bn" style="background-image:url(@part_kv.parts[0].f3);">
                <video muted="true" loop="loop" autoplay="true">
                    <source type="video/mp4" src="@part_kv.parts[0].f4">
                </video>
                <div class="index-text">
                    <span class="text-t">@part_kv.parts[0].f1</span>
                    <span class="text-t1">@part_kv.parts[0].f2</span>
                </div>
            </div>
        }
        else {
            <h1>请联系管理员上传首页kv</h1>
        }
    }

    @Html.Partial("include/foot", 0)
    <script src="/templates/hongyuan/js/all.min.js" type="text/javascript" charset="utf-8"></script>
    <script>$(window).load(function() {
            $(".index-text").addClass("is-load");
})</script>
</body>
</html>